//
//  LMTextModelCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 liman. All rights reserved.
//

#import "LMTextModelCell.h"

@implementation LMTextModelCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)setModel:(LMTextModel *)model{
    NSLog(@"LMTextModel");
    if (_model != model) {
        _model = model;
    }
}
-(void)layoutSubviews{
    self.titleLabel.text = self.model.title;
    self.desLabel.text  = self.model.content;
    self.usernameLabel.text = self.model.uname;
    [self.userIcoImageView sd_setImageWithURL:[NSURL URLWithString:self.model.icon]];
}

+ (CGFloat)height{
    return 230;
}
@end
